package com.yh.gulimall.order.feign.fallback;

import com.yh.common.exception.BizCodeEnum;
import com.yh.common.utils.R;
import com.yh.gulimall.order.feign.ProductFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ProductFeignServiceFallBack implements ProductFeignService {
    @Override
    public R getSpuInfoBySkuId(Long skuId) {
        log.info("熔断方法调用...getSpuInfoBySkuId");
        return R.error(BizCodeEnum.TOO_MANY_REQUEST.getCode(),BizCodeEnum.TOO_MANY_REQUEST.getMsg());
    }
}
